package gracker

class Task {
    String name
    String description
    Date dueDate
    String status
    static belongsTo = [assigne : User, project : Project]

    static constraints = {
        name blank: false, size: 10..100
        description blank: false, maxSize: 999999
        dueDate nullable: false
        status inList: ['New','Accepted','Test','Fixed', 'Invalid']
    }

    String toString (){
        "${name}"
    }
}
